package stoyanov.calculator;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

public class TextItem extends Interface {
	
	public void createText(final Shell shell, final Display display){

        final Text textField = new Text(shell, SWT.BORDER);
        GridData textData = new GridData();
        textData.horizontalAlignment = SWT.FILL;
        textData.grabExcessHorizontalSpace = true;
        textField.setLayoutData(textData);        
        textField.setText("0.0");
				
	}
}
